﻿using RndMaterialDisposalService.Models;
using Microsoft.EntityFrameworkCore;

namespace RndMaterialDisposalService.Repository
{
    public class UserBaseInforDataContext : DbContext
    {
        private readonly IConfiguration configuration;
        public UserBaseInforDataContext(DbContextOptions<UserBaseInforDataContext> options, IConfiguration configuration) : base(options)
     
        {
            this.configuration = configuration;
        }

        public DbSet<UserBaseInforModel> UserBaseInfor => Set<UserBaseInforModel>();

        //protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        //{
        //    //string conn = configuration.GetConnectionString("UserBaseInforData");
        //    // optionsBuilder.UseSqlServer(@"Data Source=192.168.0.167\Sistemas;Initial Catalog=AnselmoAutoSkape;User Id=sa;Pwd=#jamsoftsistemas1310;MultipleActiveResultSets=True").UseRowNumberForPaging();
        //    //var conn = Configuration["Data:DefaultConnection:ConnectionString"];
        //    //optionsBuilder.UseSqlServer(conn).UseRowNumberForPaging();
        //}
    }
}
